package com.gao.mybatis.session;

import com.gao.mybatis.configuration.Configuration;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2020-03-29 18:03
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
